﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UMLDesigner
{
    static class VisibilityType
    {
        public const string PUBLIC = "public";
        public const string PRIVATE = "private";
        public const string PROTECTED = "protected";

        private static string[] types = new String[] { PUBLIC, PRIVATE, PROTECTED };

        public static string[] GetTypes()
        {
            return types;
        }

        public static string GetUMLRepresentation(string value)
        {
            string representation="";
            switch (value)
            {
                case PUBLIC:
                    representation = "+";
                    break;
                case PRIVATE:
                    representation = "-";
                    break;
                case PROTECTED:
                    representation = "#";
                    break;
            }
            return representation;
        }
    }
}
